package com.wdb007.venus.wss.qrcode;

import java.io.File;

public class QRCodeMain {

	public static void main(String[] args) {
		String text = "https://api.wdb007.com/joker/";
		String iconPath = "E:\\venus_workspace\\xu-netty\\src\\main\\resources\\image\\icon.png"; 
		String destPath = "E:\\venus_workspace\\xu-netty\\src\\main\\resources\\image";
		try {
//			//生成带logo的二维码
//			QRCodeUtil.encode(text, iconPath, destPath);
//			
//			//生成不带logo的二维码
//			text = "https://ws.wdb007.com/user/unlock";
//			QRCodeUtil.encode(text, destPath);
			//指定二维码图片，解析返回数据  
			System.out.println(QRCodeUtil.decode(destPath + File.separator + "26733434.jpg"));  
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
